//###############
// FILE : ClearLogAction.java
// WRITER : Lior Zimmerman liorz06 066462300
// WRITER : Ohad Dan ohad_dan 036767960
// EXERCISE : oop ex3 2008
// DESCRIPTION:
// Responsible of cleaning the log text field - output data.
//###############
package oop.ex3.fileSearchController;

import oop.ex3.fileSearchView.GUIView;
import oop.ex3.fileSearchView.LogTabInterface;

/**
 * Responsible of cleaning the log text field - output data.
 */
public class ClearLogAction extends Controller {

    /**
     * Construct a new ClearLogAction.
     * @param gui The main frame.
     */
    public ClearLogAction(GUIView gui) {
        super(gui);
    }

    /**
     * Clears the log thet field.
     */
    public void doAction() {
        LogTabInterface logView = _gui.getLogView();
        logView.clearLogText();
    }
}
